3.53 \(\int \frac{(A+B \sin (e+f x)) (c-c \sin (e+f x))^3}{a+a \sin (e+f x)} \, dx\)

Optimal. Leaf size=157 \[ -\frac{a^3 c^3 (A-B) \cos ^7(e+f x)}{f (a \sin (e+f x)+a)^4}-\frac{2 a^3 c^3 (3 A-4 B) \cos ^5(e+f x)}{f \left (a^2 \sin (e+f x)+a^2\right )^2}-\frac{5 c^3 (3 A-4 B) \cos ^3(e+f x)}{3 a f}-\frac{5 c^3 (3 A-4 B) \sin (e+f x) \cos (e+f x)}{2 a f}-\frac{5 c^3 x (3 A-4 B)}{2 a} \]

[Out]

(-5*(3*A - 4*B)*c^3*x)/(2*a) - (5*(3*A - 4*B)*c^3*Cos[e + f*x]^3)/(3*a*f) - (5*(3*A - 4*B)*c^3*Cos[e + f*x]*Si
n[e + f*x])/(2*a*f) - (a^3*(A - B)*c^3*Cos[e + f*x]^7)/(f*(a + a*Sin[e + f*x])^4) - (2*a^3*(3*A - 4*B)*c^3*Cos
[e + f*x]^5)/(f*(a^2 + a^2*Sin[e + f*x])^2)

________________________________________________________________________________________

Rubi [A]  time = 0.317891, antiderivative size = 157, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 36, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {2967, 2859, 2680, 2682, 2635, 8} \[ -\frac{a^3 c^3 (A-B) \cos ^7(e+f x)}{f (a \sin (e+f x)+a)^4}-\frac{2 a^3 c^3 (3 A-4 B) \cos ^5(e+f x)}{f \left (a^2 \sin (e+f x)+a^2\right )^2}-\frac{5 c^3 (3 A-4 B) \cos ^3(e+f x)}{3 a f}-\frac{5 c^3 (3 A-4 B) \sin (e+f x) \cos (e+f x)}{2 a f}-\frac{5 c^3 x (3 A-4 B)}{2 a} \]

Antiderivative was successfully verified.

[In]

Int[((A + B*Sin[e + f*x])*(c - c*Sin[e + f*x])^3)/(a + a*Sin[e + f*x]),x]

[Out]

(-5*(3*A - 4*B)*c^3*x)/(2*a) - (5*(3*A - 4*B)*c^3*Cos[e + f*x]^3)/(3*a*f) - (5*(3*A - 4*B)*c^3*Cos[e + f*x]*Si
n[e + f*x])/(2*a*f) - (a^3*(A - B)*c^3*Cos[e + f*x]^7)/(f*(a + a*Sin[e + f*x])^4) - (2*a^3*(3*A - 4*B)*c^3*Cos
[e + f*x]^5)/(f*(a^2 + a^2*Sin[e + f*x])^2)

Rule 2967

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_) + (d_.)*sin[(e_
.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[a^m*c^m, Int[Cos[e + f*x]^(2*m)*(c + d*Sin[e + f*x])^(n - m)*(A + B
*Sin[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && I
ntegerQ[m] &&  !(IntegerQ[n] && ((LtQ[m, 0] && GtQ[n, 0]) || LtQ[0, n, m] || LtQ[m, n, 0]))

Rule 2859

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.)
+ (f_.)*(x_)]), x_Symbol] :> Simp[((b*c - a*d)*(g*Cos[e + f*x])^(p + 1)*(a + b*Sin[e + f*x])^m)/(a*f*g*(2*m +
p + 1)), x] + Dist[(a*d*m + b*c*(m + p + 1))/(a*b*(2*m + p + 1)), Int[(g*Cos[e + f*x])^p*(a + b*Sin[e + f*x])^
(m + 1), x], x] /; FreeQ[{a, b, c, d, e, f, g, m, p}, x] && EqQ[a^2 - b^2, 0] && (LtQ[m, -1] || ILtQ[Simplify[
m + p], 0]) && NeQ[2*m + p + 1, 0]

Rule 2680

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(2*g*(
g*Cos[e + f*x])^(p - 1)*(a + b*Sin[e + f*x])^(m + 1))/(b*f*(2*m + p + 1)), x] + Dist[(g^2*(p - 1))/(b^2*(2*m +
 p + 1)), Int[(g*Cos[e + f*x])^(p - 2)*(a + b*Sin[e + f*x])^(m + 2), x], x] /; FreeQ[{a, b, e, f, g}, x] && Eq
Q[a^2 - b^2, 0] && LeQ[m, -2] && GtQ[p, 1] && NeQ[2*m + p + 1, 0] &&  !ILtQ[m + p + 1, 0] && IntegersQ[2*m, 2*
p]

Rule 2682

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)/((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(g*(g*Cos[e
 + f*x])^(p - 1))/(b*f*(p - 1)), x] + Dist[g^2/a, Int[(g*Cos[e + f*x])^(p - 2), x], x] /; FreeQ[{a, b, e, f, g
}, x] && EqQ[a^2 - b^2, 0] && GtQ[p, 1] && IntegerQ[2*p]

Rule 2635

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Sin[c + d*x])^(n - 1))/(d*n),
x] + Dist[(b^2*(n - 1))/n, Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integer
Q[2*n]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps

\begin{align*} \int \frac{(A+B \sin (e+f x)) (c-c \sin (e+f x))^3}{a+a \sin (e+f x)} \, dx &=\left (a^3 c^3\right ) \int \frac{\cos ^6(e+f x) (A+B \sin (e+f x))}{(a+a \sin (e+f x))^4} \, dx\\ &=-\frac{a^3 (A-B) c^3 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}-\left (a^2 (3 A-4 B) c^3\right ) \int \frac{\cos ^6(e+f x)}{(a+a \sin (e+f x))^3} \, dx\\ &=-\frac{a^3 (A-B) c^3 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}-\frac{2 a (3 A-4 B) c^3 \cos ^5(e+f x)}{f (a+a \sin (e+f x))^2}-\left (5 (3 A-4 B) c^3\right ) \int \frac{\cos ^4(e+f x)}{a+a \sin (e+f x)} \, dx\\ &=-\frac{5 (3 A-4 B) c^3 \cos ^3(e+f x)}{3 a f}-\frac{a^3 (A-B) c^3 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}-\frac{2 a (3 A-4 B) c^3 \cos ^5(e+f x)}{f (a+a \sin (e+f x))^2}-\frac{\left (5 (3 A-4 B) c^3\right ) \int \cos ^2(e+f x) \, dx}{a}\\ &=-\frac{5 (3 A-4 B) c^3 \cos ^3(e+f x)}{3 a f}-\frac{5 (3 A-4 B) c^3 \cos (e+f x) \sin (e+f x)}{2 a f}-\frac{a^3 (A-B) c^3 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}-\frac{2 a (3 A-4 B) c^3 \cos ^5(e+f x)}{f (a+a \sin (e+f x))^2}-\frac{\left (5 (3 A-4 B) c^3\right ) \int 1 \, dx}{2 a}\\ &=-\frac{5 (3 A-4 B) c^3 x}{2 a}-\frac{5 (3 A-4 B) c^3 \cos ^3(e+f x)}{3 a f}-\frac{5 (3 A-4 B) c^3 \cos (e+f x) \sin (e+f x)}{2 a f}-\frac{a^3 (A-B) c^3 \cos ^7(e+f x)}{f (a+a \sin (e+f x))^4}-\frac{2 a (3 A-4 B) c^3 \cos ^5(e+f x)}{f (a+a \sin (e+f x))^2}\\ \end{align*}

Mathematica [A]  time = 1.36298, size = 220, normalized size = 1.4 \[ \frac{c^3 (\sin (e+f x)-1)^3 \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right ) \left (\cos \left (\frac{1}{2} (e+f x)\right ) (30 (3 A-4 B) (e+f x)-3 (A-4 B) \sin (2 (e+f x))+(48 A-93 B) \cos (e+f x)+B \cos (3 (e+f x)))+\sin \left (\frac{1}{2} (e+f x)\right ) (-3 (A-4 B) \sin (2 (e+f x))+(48 A-93 B) \cos (e+f x)+6 A (15 e+15 f x-32)-24 B (5 e+5 f x-8)+B \cos (3 (e+f x)))\right )}{12 a f (\sin (e+f x)+1) \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right )^6} \]

Antiderivative was successfully verified.

[In]

Integrate[((A + B*Sin[e + f*x])*(c - c*Sin[e + f*x])^3)/(a + a*Sin[e + f*x]),x]

[Out]

(c^3*(Cos[(e + f*x)/2] + Sin[(e + f*x)/2])*(-1 + Sin[e + f*x])^3*(Cos[(e + f*x)/2]*(30*(3*A - 4*B)*(e + f*x) +
 (48*A - 93*B)*Cos[e + f*x] + B*Cos[3*(e + f*x)] - 3*(A - 4*B)*Sin[2*(e + f*x)]) + Sin[(e + f*x)/2]*(-24*B*(-8
 + 5*e + 5*f*x) + 6*A*(-32 + 15*e + 15*f*x) + (48*A - 93*B)*Cos[e + f*x] + B*Cos[3*(e + f*x)] - 3*(A - 4*B)*Si
n[2*(e + f*x)])))/(12*a*f*(Cos[(e + f*x)/2] - Sin[(e + f*x)/2])^6*(1 + Sin[e + f*x]))

________________________________________________________________________________________

Maple [B]  time = 0.121, size = 449, normalized size = 2.9 \begin{align*} -{\frac{A{c}^{3}}{af} \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{5} \left ( 1+ \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{2} \right ) ^{-3}}+4\,{\frac{{c}^{3} \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{5}B}{af \left ( 1+ \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{2} \right ) ^{3}}}-8\,{\frac{{c}^{3} \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{4}A}{af \left ( 1+ \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{2} \right ) ^{3}}}+14\,{\frac{{c}^{3} \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{4}B}{af \left ( 1+ \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{2} \right ) ^{3}}}-16\,{\frac{{c}^{3} \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{2}A}{af \left ( 1+ \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{2} \right ) ^{3}}}+32\,{\frac{{c}^{3} \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{2}B}{af \left ( 1+ \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{2} \right ) ^{3}}}+{\frac{A{c}^{3}}{af}\tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \left ( 1+ \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{2} \right ) ^{-3}}-4\,{\frac{{c}^{3}\tan \left ( 1/2\,fx+e/2 \right ) B}{af \left ( 1+ \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{2} \right ) ^{3}}}-8\,{\frac{A{c}^{3}}{af \left ( 1+ \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) ^{2} \right ) ^{3}}}+{\frac{46\,B{c}^{3}}{3\,af} \left ( 1+ \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{2} \right ) ^{-3}}-15\,{\frac{{c}^{3}\arctan \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) A}{af}}+20\,{\frac{{c}^{3}\arctan \left ( \tan \left ( 1/2\,fx+e/2 \right ) \right ) B}{af}}-16\,{\frac{A{c}^{3}}{af \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) }}+16\,{\frac{B{c}^{3}}{af \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) }} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A+B*sin(f*x+e))*(c-c*sin(f*x+e))^3/(a+a*sin(f*x+e)),x)

[Out]

-1/f*c^3/a/(1+tan(1/2*f*x+1/2*e)^2)^3*tan(1/2*f*x+1/2*e)^5*A+4/f*c^3/a/(1+tan(1/2*f*x+1/2*e)^2)^3*tan(1/2*f*x+
1/2*e)^5*B-8/f*c^3/a/(1+tan(1/2*f*x+1/2*e)^2)^3*tan(1/2*f*x+1/2*e)^4*A+14/f*c^3/a/(1+tan(1/2*f*x+1/2*e)^2)^3*t
an(1/2*f*x+1/2*e)^4*B-16/f*c^3/a/(1+tan(1/2*f*x+1/2*e)^2)^3*tan(1/2*f*x+1/2*e)^2*A+32/f*c^3/a/(1+tan(1/2*f*x+1
/2*e)^2)^3*tan(1/2*f*x+1/2*e)^2*B+1/f*c^3/a/(1+tan(1/2*f*x+1/2*e)^2)^3*tan(1/2*f*x+1/2*e)*A-4/f*c^3/a/(1+tan(1
/2*f*x+1/2*e)^2)^3*tan(1/2*f*x+1/2*e)*B-8/f*c^3/a/(1+tan(1/2*f*x+1/2*e)^2)^3*A+46/3/f*c^3/a/(1+tan(1/2*f*x+1/2
*e)^2)^3*B-15/f*c^3/a*arctan(tan(1/2*f*x+1/2*e))*A+20/f*c^3/a*arctan(tan(1/2*f*x+1/2*e))*B-16/f*c^3/a/(tan(1/2
*f*x+1/2*e)+1)*A+16/f*c^3/a/(tan(1/2*f*x+1/2*e)+1)*B

________________________________________________________________________________________

Maxima [B]  time = 1.53447, size = 1512, normalized size = 9.63 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+B*sin(f*x+e))*(c-c*sin(f*x+e))^3/(a+a*sin(f*x+e)),x, algorithm="maxima")

[Out]

1/3*(B*c^3*((7*sin(f*x + e)/(cos(f*x + e) + 1) + 39*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 24*sin(f*x + e)^3/(c
os(f*x + e) + 1)^3 + 24*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + 9*sin(f*x + e)^5/(cos(f*x + e) + 1)^5 + 9*sin(f*
x + e)^6/(cos(f*x + e) + 1)^6 + 16)/(a + a*sin(f*x + e)/(cos(f*x + e) + 1) + 3*a*sin(f*x + e)^2/(cos(f*x + e)
+ 1)^2 + 3*a*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + 3*a*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + 3*a*sin(f*x + e)^
5/(cos(f*x + e) + 1)^5 + a*sin(f*x + e)^6/(cos(f*x + e) + 1)^6 + a*sin(f*x + e)^7/(cos(f*x + e) + 1)^7) + 9*ar
ctan(sin(f*x + e)/(cos(f*x + e) + 1))/a) - 3*A*c^3*((sin(f*x + e)/(cos(f*x + e) + 1) + 5*sin(f*x + e)^2/(cos(f
*x + e) + 1)^2 + 3*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + 3*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + 4)/(a + a*sin
(f*x + e)/(cos(f*x + e) + 1) + 2*a*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 2*a*sin(f*x + e)^3/(cos(f*x + e) + 1)
^3 + a*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + a*sin(f*x + e)^5/(cos(f*x + e) + 1)^5) + 3*arctan(sin(f*x + e)/(c
os(f*x + e) + 1))/a) + 9*B*c^3*((sin(f*x + e)/(cos(f*x + e) + 1) + 5*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 3*s
in(f*x + e)^3/(cos(f*x + e) + 1)^3 + 3*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + 4)/(a + a*sin(f*x + e)/(cos(f*x +
 e) + 1) + 2*a*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 2*a*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + a*sin(f*x + e)^
4/(cos(f*x + e) + 1)^4 + a*sin(f*x + e)^5/(cos(f*x + e) + 1)^5) + 3*arctan(sin(f*x + e)/(cos(f*x + e) + 1))/a)
 - 18*A*c^3*((sin(f*x + e)/(cos(f*x + e) + 1) + sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 2)/(a + a*sin(f*x + e)/(
cos(f*x + e) + 1) + a*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + a*sin(f*x + e)^3/(cos(f*x + e) + 1)^3) + arctan(si
n(f*x + e)/(cos(f*x + e) + 1))/a) + 18*B*c^3*((sin(f*x + e)/(cos(f*x + e) + 1) + sin(f*x + e)^2/(cos(f*x + e)
+ 1)^2 + 2)/(a + a*sin(f*x + e)/(cos(f*x + e) + 1) + a*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + a*sin(f*x + e)^3/
(cos(f*x + e) + 1)^3) + arctan(sin(f*x + e)/(cos(f*x + e) + 1))/a) - 18*A*c^3*(arctan(sin(f*x + e)/(cos(f*x +
e) + 1))/a + 1/(a + a*sin(f*x + e)/(cos(f*x + e) + 1))) + 6*B*c^3*(arctan(sin(f*x + e)/(cos(f*x + e) + 1))/a +
 1/(a + a*sin(f*x + e)/(cos(f*x + e) + 1))) - 6*A*c^3/(a + a*sin(f*x + e)/(cos(f*x + e) + 1)))/f

________________________________________________________________________________________

Fricas [A]  time = 1.5018, size = 533, normalized size = 3.39 \begin{align*} -\frac{2 \, B c^{3} \cos \left (f x + e\right )^{4} +{\left (3 \, A - 10 \, B\right )} c^{3} \cos \left (f x + e\right )^{3} + 15 \,{\left (3 \, A - 4 \, B\right )} c^{3} f x + 24 \,{\left (A - 2 \, B\right )} c^{3} \cos \left (f x + e\right )^{2} + 48 \,{\left (A - B\right )} c^{3} + 3 \,{\left (5 \,{\left (3 \, A - 4 \, B\right )} c^{3} f x +{\left (23 \, A - 28 \, B\right )} c^{3}\right )} \cos \left (f x + e\right ) +{\left (2 \, B c^{3} \cos \left (f x + e\right )^{3} + 15 \,{\left (3 \, A - 4 \, B\right )} c^{3} f x - 3 \,{\left (A - 4 \, B\right )} c^{3} \cos \left (f x + e\right )^{2} + 3 \,{\left (7 \, A - 12 \, B\right )} c^{3} \cos \left (f x + e\right ) - 48 \,{\left (A - B\right )} c^{3}\right )} \sin \left (f x + e\right )}{6 \,{\left (a f \cos \left (f x + e\right ) + a f \sin \left (f x + e\right ) + a f\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+B*sin(f*x+e))*(c-c*sin(f*x+e))^3/(a+a*sin(f*x+e)),x, algorithm="fricas")

[Out]

-1/6*(2*B*c^3*cos(f*x + e)^4 + (3*A - 10*B)*c^3*cos(f*x + e)^3 + 15*(3*A - 4*B)*c^3*f*x + 24*(A - 2*B)*c^3*cos
(f*x + e)^2 + 48*(A - B)*c^3 + 3*(5*(3*A - 4*B)*c^3*f*x + (23*A - 28*B)*c^3)*cos(f*x + e) + (2*B*c^3*cos(f*x +
 e)^3 + 15*(3*A - 4*B)*c^3*f*x - 3*(A - 4*B)*c^3*cos(f*x + e)^2 + 3*(7*A - 12*B)*c^3*cos(f*x + e) - 48*(A - B)
*c^3)*sin(f*x + e))/(a*f*cos(f*x + e) + a*f*sin(f*x + e) + a*f)

________________________________________________________________________________________

Sympy [A]  time = 31.7337, size = 4255, normalized size = 27.1 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+B*sin(f*x+e))*(c-c*sin(f*x+e))**3/(a+a*sin(f*x+e)),x)

[Out]

Piecewise((-45*A*c**3*f*x*tan(e/2 + f*x/2)**7/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*
tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6
*a*f*tan(e/2 + f*x/2) + 6*a*f) - 45*A*c**3*f*x*tan(e/2 + f*x/2)**6/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2
+ f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*ta
n(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) - 135*A*c**3*f*x*tan(e/2 + f*x/2)**5/(6*a*f*tan(e/2 + f*x/
2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 +
 f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) - 135*A*c**3*f*x*tan(e/2 + f*x/2)**4
/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)
**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) - 135*A*c**3*f
*x*tan(e/2 + f*x/2)**3/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 1
8*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) +
 6*a*f) - 135*A*c**3*f*x*tan(e/2 + f*x/2)**2/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*t
an(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*
a*f*tan(e/2 + f*x/2) + 6*a*f) - 45*A*c**3*f*x*tan(e/2 + f*x/2)/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*
x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/
2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) - 45*A*c**3*f*x/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f
*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e
/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) - 102*A*c**3*tan(e/2 + f*x/2)**6/(6*a*f*tan(e/2 + f*x/2)**7 +
 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)
**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) - 54*A*c**3*tan(e/2 + f*x/2)**5/(6*a*f*tan(
e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f
*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) - 336*A*c**3*tan(e/2 + f*x
/2)**4/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 +
f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) - 96*A*c
**3*tan(e/2 + f*x/2)**3/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 +
18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2)
+ 6*a*f) - 378*A*c**3*tan(e/2 + f*x/2)**2/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(
e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f
*tan(e/2 + f*x/2) + 6*a*f) - 42*A*c**3*tan(e/2 + f*x/2)/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6
 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x
/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) - 144*A*c**3/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 +
 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2
)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 60*B*c**3*f*x*tan(e/2 + f*x/2)**7/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*
tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 1
8*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 60*B*c**3*f*x*tan(e/2 + f*x/2)**6/(6*a*f*tan(e/2
 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*ta
n(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 180*B*c**3*f*x*tan(e/2 + f*
x/2)**5/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 +
 f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 180*B
*c**3*f*x*tan(e/2 + f*x/2)**4/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)
**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f
*x/2) + 6*a*f) + 180*B*c**3*f*x*tan(e/2 + f*x/2)**3/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 1
8*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)*
*2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 180*B*c**3*f*x*tan(e/2 + f*x/2)**2/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*t
an(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18
*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 60*B*c**3*f*x*tan(e/2 + f*x/2)/(6*a*f*tan(e/2 + f
*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/
2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 60*B*c**3*f*x/(6*a*f*tan(e/2 +
f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e
/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 120*B*c**3*tan(e/2 + f*x/2)**6
/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)
**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 108*B*c**3*t
an(e/2 + f*x/2)**5/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*
f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a
*f) + 372*B*c**3*tan(e/2 + f*x/2)**4/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 +
 f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(
e/2 + f*x/2) + 6*a*f) + 192*B*c**3*tan(e/2 + f*x/2)**3/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*tan(e/2 + f*x/2)**6
+ 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*a*f*tan(e/2 + f*x/
2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 456*B*c**3*tan(e/2 + f*x/2)**2/(6*a*f*tan(e/2 + f*x/2)**7 + 6*a*f*ta
n(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x/2)**3 + 18*
a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 68*B*c**3*tan(e/2 + f*x/2)/(6*a*f*tan(e/2 + f*x/2)
**7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f
*x/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f) + 188*B*c**3/(6*a*f*tan(e/2 + f*x/2)**
7 + 6*a*f*tan(e/2 + f*x/2)**6 + 18*a*f*tan(e/2 + f*x/2)**5 + 18*a*f*tan(e/2 + f*x/2)**4 + 18*a*f*tan(e/2 + f*x
/2)**3 + 18*a*f*tan(e/2 + f*x/2)**2 + 6*a*f*tan(e/2 + f*x/2) + 6*a*f), Ne(f, 0)), (x*(A + B*sin(e))*(-c*sin(e)
 + c)**3/(a*sin(e) + a), True))

________________________________________________________________________________________

Giac [A]  time = 1.20191, size = 317, normalized size = 2.02 \begin{align*} -\frac{\frac{15 \,{\left (3 \, A c^{3} - 4 \, B c^{3}\right )}{\left (f x + e\right )}}{a} + \frac{96 \,{\left (A c^{3} - B c^{3}\right )}}{a{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 1\right )}} + \frac{2 \,{\left (3 \, A c^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{5} - 12 \, B c^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{5} + 24 \, A c^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 42 \, B c^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} + 48 \, A c^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - 96 \, B c^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - 3 \, A c^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 12 \, B c^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 24 \, A c^{3} - 46 \, B c^{3}\right )}}{{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} + 1\right )}^{3} a}}{6 \, f} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+B*sin(f*x+e))*(c-c*sin(f*x+e))^3/(a+a*sin(f*x+e)),x, algorithm="giac")

[Out]

-1/6*(15*(3*A*c^3 - 4*B*c^3)*(f*x + e)/a + 96*(A*c^3 - B*c^3)/(a*(tan(1/2*f*x + 1/2*e) + 1)) + 2*(3*A*c^3*tan(
1/2*f*x + 1/2*e)^5 - 12*B*c^3*tan(1/2*f*x + 1/2*e)^5 + 24*A*c^3*tan(1/2*f*x + 1/2*e)^4 - 42*B*c^3*tan(1/2*f*x
+ 1/2*e)^4 + 48*A*c^3*tan(1/2*f*x + 1/2*e)^2 - 96*B*c^3*tan(1/2*f*x + 1/2*e)^2 - 3*A*c^3*tan(1/2*f*x + 1/2*e)
+ 12*B*c^3*tan(1/2*f*x + 1/2*e) + 24*A*c^3 - 46*B*c^3)/((tan(1/2*f*x + 1/2*e)^2 + 1)^3*a))/f